package com.web.web.filter;

import com.web.web.request.SessionUserArugmentResolver;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class RedisSessionWebConfigurer implements WebMvcConfigurer {

    private final SessionUserArugmentResolver sessionUserArugmentResolver;

    @Override
    public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers) {
        resolvers.add(sessionUserArugmentResolver);
    }
}
